import { createVNode, Fragment } from "../vnode";



export function renderSlots(slots,name,props) {

    const slot = slots[name];

    if (slot){
        // function 
        if (typeof slot === "function"){
            return createVNode(Fragment,{},slot(props))
        }
        
    }

   

}